interface RouteItemConfig {
  name: string;
  path: string;
  title?: string;
}
export type IBSKey =
  | 'workbench'
  | 'forecastManagement'
  | 'forecastList'
  | 'forecastDetail'
  | 'replenishManagement'
  | 'replenishList'
  | 'replenishDetail'
  | 'replenishStrategy'
  | 'assortmentNewShop'
  | 'assortmentItemToSite'
  | 'assortmentSiteToItem'
  | 'assortmentResult';
export const IBSRoute: Record<IBSKey, RouteItemConfig> = {
  workbench: {
    name: 'ibs-workbench',
    path: 'workbench'
  },
  forecastManagement: {
    name: 'forecast-management',
    path: 'forecast/management'
  },
  forecastList: {
    name: 'forecast-list',
    path: 'forecast/list'
  },
  forecastDetail: {
    name: 'forecast-detail',
    path: 'forecast/detail/:id'
  },
  /** replenish */
  replenishManagement: {
    name: 'replenish-management',
    path: 'replenish/management'
  },
  replenishList: {
    name: 'replenish-list',
    path: 'replenish/list'
  },
  replenishDetail: {
    name: 'replenish-detail',
    path: 'replenish/detail/:id'
  },
  replenishStrategy: {
    name: 'replenish-strategy',
    path: 'replenish/strategy'
  },
  /** assortment */
  assortmentNewShop: {
    name: 'assortment-new-shop',
    path: 'assortment/new-site',
    title: '新店选品'
  },
  assortmentItemToSite: {
    name: 'assortment-item-to-site',
    path: 'assortment/item-to-site',
    title: '商品分档到门店'
  },
  assortmentSiteToItem: {
    name: 'assortment-site-to-item',
    path: 'assortment/site-to-item',
    title: '门店分档商品'
  },
  assortmentResult: {
    name: 'assortment-result',
    path: 'assortment/result',
    title: '选品结果'
  }
};

export type IBPKey =
  | 'planTemplate'
  | 'planDataTarget'
  | 'planRuleConfig'
  | 'planCalendar'
  | 'planSales'
  | 'planPchs';
export const IBPRoute: Record<IBPKey, RouteItemConfig> = {
  planTemplate: {
    name: 'plan-template',
    path: 'plantemplate'
  },
  planDataTarget: {
    name: 'plan-data-target',
    path: 'plandatatarget'
  },
  planRuleConfig: {
    name: 'plan-rule-config',
    path: 'planruleconfig'
  },
  planCalendar: {
    name: 'plan-calendar',
    path: 'plancalendar'
  },
  planSales: {
    name: 'plan-sales',
    path: 'plansales'
  },
  planPchs: {
    name: 'plan_pchs',
    path: 'planpchs'
  }
};

export type UMSKey =
  | 'tenantManage'
  | 'companyInfo'
  | 'organizeType'
  | 'organizeManage'
  | 'resourceManage'
  | 'userManage'
  | 'rulesManage'
  | 'rolesManage'
  | 'logsManage'
  | 'positionManage'
  | 'pictureUpload'
  | 'dictManage';
export const UMSRoute: Record<UMSKey, RouteItemConfig> = {
  tenantManage: {
    name: 'tenant-manage',
    path: 'tenantmanage'
  },
  companyInfo: {
    name: 'company-info',
    path: 'companyinfo'
  },
  organizeType: {
    name: 'organize-type',
    path: 'organizetype'
  },
  organizeManage: {
    name: 'organize-manage',
    path: 'organizemanage'
  },
  userManage: {
    name: 'user-manage',
    path: 'userManage'
  },
  resourceManage: {
    name: 'resource-manage',
    path: 'resourceManage'
  },
  rulesManage: {
    name: 'rules-manage',
    path: 'rulesManage'
  },
  rolesManage: {
    name: 'roles-manage',
    path: 'rolesManage'
  },
  logsManage: {
    name: 'logs-manage',
    path: 'logsManage'
  },
  positionManage: {
    name: 'position-manage',
    path: 'positionManage'
  },
  pictureUpload: {
    name: 'position-upload',
    path: 'pictureUpload'
  },
  dictManage: {
    name: 'dict-manage',
    path: 'dict-manage'
  }
};
